// 生产环境配置
module.exports = {
  port: process.env.PORT || 3000,
  nodeEnv: process.env.NODE_ENV || 'production',
  basePath: process.env.BASE_PATH || '/stock',
  // Database configuration
  db: {
    host: process.env.DB_HOST || 'localhost',
    port: process.env.DB_PORT || 5432,
    username: process.env.DB_USERNAME || 'stock_user',
    password: process.env.DB_PASSWORD || 'stock_password',
    database: process.env.DB_NAME || 'stock_trading'
  },
  // API keys
  api: {
    alphaVantageKey: process.env.ALPHA_VANTAGE_API_KEY || '',
    finnhubKey: process.env.FINNHUB_API_KEY || ''
  },
  // JWT配置
  jwt: {
    secret: process.env.JWT_SECRET || 'stock_trading_secret_key_production_2025',
    expiresIn: process.env.JWT_EXPIRES_IN || '24h'
  }
};